<html>
<body>
<script type="text/javascript" charset="utf-8">
  var w = window.open('http://host', '', 'show=no');
  if (w == null)
    console.log('null');
  else
    console.log('window');
</script>
</body>
</html>

